package com.shycloud.mido.member.api.feign;

import com.shycloud.mido.common.core.constant.ServiceNameConstants;
import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.member.api.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author xiaoxing.yu
 * @date 2021/03/10
 */
@FeignClient(value = ServiceNameConstants.MUSIC_SERVICE)
public interface RemoteMusicService {

	/**
	 * 搜索曲集
	 *
	 * @param keywords 关键字
	 * @param flg 标识位，为"1"只搜曲集，其他情况曲集和曲目都搜索
	 * @return R
	 */
	@GetMapping("/search/searchMusic")
	R<Map> searchCollection(@RequestParam("current") Integer current, @RequestParam("size") Integer size
			, @RequestParam("keywords") String keywords, @RequestParam("flg") String flg);

}
